import { roleObjR } from '@src/store/baseSlice';
import Modal from 'antd/lib/modal/Modal';
import { FC, useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import styles from './index.module.less';
export const UserCenter: FC = () => {
  const userInfo = useSelector(roleObjR);
  useEffect(() => {
    console.log(1);
  }, []);
  return (
    <>
      <div className={`${styles.userCenter} pageBox fff`}>
        <div>
          <div className={styles.userName}>
            <div>{userInfo.roleName} 您好！</div>
            <div>欢迎使用，碎片化业务管理平台</div>
          </div>

          <ul>
            <li>
              <div className="nameValueFlex">
                <div className="names">岗位：</div>
                <div className="values">
                  <span>京东安联财险-技术平台部-运营研发部</span>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </>
  );
};
